home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXmmmmPPPPrrrriiiinnnnttttSSSSeeeettttuuuupppp((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmPPPPrrrriiiinnnnttttSSSSeeeettttuuuupppp((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- XXXXmmmmPPPPrrrriiiinnnnttttSSSSeeeettttuuuupppp - setup and create a Print Shell widget
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <Xm/Print.h>
- WWWWiiiiddddggggeeeetttt XXXXmmmmPPPPrrrriiiinnnnttttSSSSeeeettttuuuupppp(
- WWWWiiiiddddggggeeeetttt vvvviiiiddddeeeeoooo____wwwwiiiiddddggggeeeetttt,
- SSSSccccrrrreeeeeeeennnn ****pppprrrriiiinnnntttt____ssssccccrrrreeeeeeeennnn,
- SSSSttttrrrriiiinnnngggg pppprrrriiiinnnntttt____sssshhhheeeellllllll____nnnnaaaammmmeeee,
- AAAArrrrggggLLLLiiiisssstttt aaaarrrrggggssss,
- CCCCaaaarrrrddddiiiinnnnaaaallll nnnnuuuummmm____aaaarrrrggggssss);
-
- VVVVEEEERRRRSSSSIIIIOOOONNNN
- This page documents Motif 2.1.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- A function that does the appropriate setting and creates a
- realized _X_m_P_r_i_n_t_S_h_e_l_l that it returns to the caller. This
- function hides the details of the XXXXtttt to set up a valid print
- shell heirarchy for the application. It is also meant to
- encourage consistency in the way applications root their
- print widget hierarchy.
-
- _p_r_i_n_t__s_c_r_e_e_n must belong to a Display connection that has
- already been initialized with XXXXtttt.
-
- The _v_i_d_e_o__w_i_d_g_e_tis used to get at the application context,
- application name and class, and aaaarrrrggggcccc////aaaarrrrggggvvvv stored on the
- aaaapppppppplllliiiiccccaaaattttiiiioooonnnnSSSShhhheeeellllllll that roots this widget. If no
- aaaapppppppplllliiiiccccaaaattttiiiioooonnnnSSSShhhheeeellllllll is found, NNNNUUUULLLLLLLL aaaarrrrggggvvvv////aaaarrrrggggcccc are used.
-
- XXXXmmmmPPPPrrrriiiinnnnttttSSSSeeeettttuuuupppp then creates an unrealized AAAApppppppplllliiiiccccaaaattttiiiioooonnnnSSSShhhheeeellllllllwith
- the same name and class as the one given by the video
- display, on the print display and on the print screen
- specified.
-
- An _X_m_P_r_i_n_t_S_h_e_l_lis then created as a child of this toplevel
- shell, using XXXXttttCCCCrrrreeeeaaaatttteeeePPPPooooppppuuuuppppSSSShhhheeeellllllll, with the name
- _p_r_i_n_t__s_h_e_l_l__n_a_m_e, and using the _a_r_g_sprovided. It then
- realizes and maps the print shell, using _X_t_P_o_p_u_p with
- _X_t_G_r_a_b_N_o_n_e.
-
- This way, application resource files and users can specify
- print specific attributes using the following syntax (if
- pppprrrriiiinnnntttt____sssshhhheeeellllllll____nnnnaaaammmmeeee is "Print"):
-
- Dtpad.Print*textFontList: somefont
- *Print*background:white
- *Print*highlightThickness:0
-
- _v_i_d_e_o__w_i_d_g_e_t
- A video widget to fetch app video data from.
-
-
-
- Page 1 (printed 10/3/02)
-
-
-
-
-
-
- XXXXmmmmPPPPrrrriiiinnnnttttSSSSeeeettttuuuupppp((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmPPPPrrrriiiinnnnttttSSSSeeeettttuuuupppp((((3333XXXX))))
-
-
-
- _p_r_i_n_t__s_c_r_e_e_n
- A print screen on the print display - specifies
- the screen onto which the new shell is created.
-
- _p_r_i_n_t__s_h_e_l_l__n_a_m_e
- Specifies the name of the XmPrintShell created on
- the X Print server.
-
- _a_r_g_s Specifies the argument list from which to get the
- resources for the XmPrintShell.
-
- _n_u_m__a_r_g_s Specifies the number of arguments in the argument
- list.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- The id the _X_m_P_r_i_n_t_S_h_e_l_l widget created on the X Print Server
- connection, or NULL if an error has occured.
-
- EEEERRRRRRRROOOORRRRSSSS////WWWWAAAARRRRNNNNIIIINNNNGGGGSSSS
- None.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- From the OOOOKKKK callback and the SSSSeeeettttUUUUpppp callback of the primary
- print dialog widget:
-
- static void
- printOKCB(Widget, XtPointer call_data, XtPointer client_data)
- {
- AppPrint *p = (AppPrint *) client_data;
- DtPrintSetupCallbackStruct *pbs =
- (XmPrintCallbackStruct *) call_data;
-
- /* connect if not already done.
- the print dialog callback always provides valid
- printer name, print display and screen
- already initialized: XpInitContext called */
- */
- p->print_shell = XmPrintSetup (widget, pbs->print_screen,
- "Print", NULL, 0);
-
- ...
- }
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- XXXXmmmmPPPPrrrriiiinnnnttttSSSShhhheeeellllllll(3), XXXXmmmmRRRReeeeddddiiiissssppppllllaaaayyyyWWWWiiiiddddggggeeeetttt(3), XXXXmmmmPPPPrrrriiiinnnnttttTTTTooooFFFFiiiilllleeee(3),
- XXXXmmmmPPPPrrrriiiinnnnttttPPPPooooppppuuuuppppPPPPDDDDMMMM(3)
-
-
-
-
-
-
-
-
-
- Page 2 (printed 10/3/02)
-
-
-
-